'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/default.asp', controller.home.index);
  router.get('/about.asp', controller.home.about);
  router.get('/stats.asp', controller.stats.index);
  router.get('/feed.asp', controller.feed.index);
  router.get('/comment.asp', controller.comment.index);
  router.get('/trackback.asp', controller.trackback.index);
  router.post('/trackback.asp', controller.trackback.index);
  router.get('/gbook.asp', controller.gbook.index);
  router.post('/gbook.asp', controller.gbook.index);
  router.get('/article.asp', controller.article.index);
  router.post('/article.asp', controller.article.index);

  router.get('/login.asp', controller.user.login);
  router.post('/login.asp', controller.user.doLogin);
  router.get('/register.asp', controller.user.register);
  router.post('/register.asp', controller.user.register);
  router.get('/user.asp', controller.user.index);
  router.get('/admin.asp', controller.admin.index);
  router.post('/admin.asp', controller.admin.index);
  router.get('/scode.asp', controller.securityCode.index);
};
